﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dpdw.CompoundPattern
{
    /// <summary>
    /// 呱呱叫学家 在观察鸭子叫
    /// </summary>
    public class Quackologist : Observer
    {
        public void Update(IQuackObservable duck)
        {
            System.Diagnostics.Trace.WriteLine(
                "Quackologist: " + duck.ToString() + " just quacked.");
        }
    }
}
